//
//  MJ_UserMessage.h
//  UEAssistant
//
//  Created by mac on 2017/12/28.
//  Copyright © 2017年 youyixinxi. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MMDrawerController/MMDrawerController.h>
typedef void(^Clicked)(void);

@interface MJ_UserMessage : NSObject

//导航栏头像按钮
@property (strong, nonatomic)UIButton *userHeadButton;

//消息按钮
@property (strong, nonatomic)UIButton *messageBarButton;
/**三个点*/
@property (nonatomic, strong) UIView                                        *topView;
@property (nonatomic, strong) UIView                                        *midView;
@property (nonatomic, strong) UIView                                        *footView;
//根据登录用户的等级，判断请求url路径为enterprise 还是 personal
@property (nonatomic, copy)NSString * urlCategate;
//基础域名
@property (copy, nonatomic)NSString *baseUrl;
//初始化
+ (instancetype)sharedInstance;

//企业管理者根控制器
- (MMDrawerController *)setupEnterpriseRootVC;

//私有译员（企业和个人）根控制器
- (MMDrawerController *)setupPriviteRootVC;

//获取当前抽屉父控制器
@property (strong, nonatomic)MMDrawerController *currentDrawerController;

//用户退出登录(清空用户信息缓存)
- (void)userLogOut;
//用户在线
- (void)userOnline;
//判断用户是否在线
- (BOOL)userIsOnline;
//显示小红点,新消息提醒
- (void)showBadgeWithMessageButton;
//隐藏小红点
- (void)hideBadgeWithMessageButton;
//检查当前版本
- (void)checkAppVersion;
//保存deviceToken
- (void)saveDeviceTokenWithString:(NSString *)deviceToken;
//获取当前deviceToken
- (NSString *)getDeviceToken;
@end
